package crawler.server.dispatch.entity.core;

import java.io.InputStream;
import java.io.Serializable;
import java.util.Date;

public class TaskScriptEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String ID;               //记录ID
	private Date createTime;         //记录的创建时间
	private Date updateTime;         //记录的更新时间
	private String taskId;           //任务的ID，即Task表的taskId
	private String groupName;        //对应Script的jar包文件名（不带后缀）
	private String taskName;         //对应执行的类名，包含完整包名+类名
	private String version;          //当前版本
	private Integer scriptType;      //脚本类型
	private String fileMD5;          //文件的MD5值
	private InputStream scriptFile;  //任务的jar文件,Mongodb中存在GridFS。
	
	
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public Integer getScriptType() {
		return scriptType;
	}
	public void setScriptType(Integer scriptType) {
		this.scriptType = scriptType;
	}
	public String getFileMD5() {
		return fileMD5;
	}
	public void setFileMD5(String fileMD5) {
		this.fileMD5 = fileMD5;
	}
	public InputStream getScriptFile() {
		return scriptFile;
	}
	public void setScriptFile(InputStream scriptFile) {
		this.scriptFile = scriptFile;
	}
	
	

}
